package com.bkhech.pojo.convertor;


import com.bkhech.pojo.ChatMessage;
import com.bkhech.pojo.netty.ChatMsg;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface ChatMessageConvertor {

    ChatMessageConvertor INSTANCE = Mappers.getMapper(ChatMessageConvertor.class);

    @Mapping(source = "msgId", target = "id")
    ChatMessage chatMsg2ChatMessage(ChatMsg chatMsg);
}
